<template>
  <div class="pageAdimin">
    <div class="parent">
      <div class="child"></div>
      <div class="child"></div>
      <div class="child"></div>
      <div class="child"></div>
      <div class="child"></div>
      <div class="child"></div>
      <div class="child"></div>
      <div class="child"></div>
    </div>
  </div>
</template>

<script>
export default {
  computed: {},
  methods: {},
  data() {
    return {}
  }
}
</script>
<style scoped lang="scss">
.pageAdimin {
  padding: 20px 400px;
  .parent {
    margin-top: 20px;
    text-align: center;
    white-space: nowrap;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 25px;
    .child {
      width: 400px;
      height: 50px;
      background-color: aqua;
      margin: 0 10px;
      white-space: nowrap;
      display: inline-block;
    }
  }
}
// 滚动轴整体，主要设置宽度
.parent1::-webkit-scrollbar,
.parent::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}

// 滚动轴的背景区域
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  border-radius: 0px;
  background: '#F6F6F6';
}

// 滚动轴
::-webkit-scrollbar-thumb {
  border-radius: 5px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  background: '#E0E0E0';
}

// 滚动轴浮动样式
::-webkit-scrollbar-thumb:hover {
  border-radius: 5px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  background: rgba(189, 118, 118, 0.3);
}
</style>
